package com.hznc.wcs.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description : 业务全局异常
 * @Date : 2024/6/26
 * @Author : ChenJin
 * @Version : v1.0.0
 **/
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException{
    
    private Integer code;
    
    private String message;
    
    public BusinessException(){
        
    }

    public BusinessException(String message){
        this.message = message;
    }
    
    public BusinessException(Integer code, String message){
        this.code = code;
        this.message = message;
    }
    
    
    
}
